package com.yunsc.order.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yunsc.order.dto.QueryDeliveryDTO;
import com.yunsc.order.entity.YunscOrderDeliveryEntity;
import com.yunsc.order.vo.OrderDeliveryVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 订单发货单记录表
 * 
 * @author adan
 * @email 2028038953@qq.com
 * @date 2024-04-22 11:35:50
 */
@Mapper
public interface YunscOrderDeliveryDao extends BaseMapper<YunscOrderDeliveryEntity> {

    /**
     * 根据订单号查询订单发货单记录
     * @param orderId 订单号
     * @return 订单发货单记录
     */
    List<OrderDeliveryVO> selectOrderDeliveryByOrderId(@Param("orderId") Integer orderId);
    /**
     * 分页查询订单发货单记录
     * @param query 查询参数
     * @param storeId 当前门店ID
     * @return 订单发货单记录分页列表
     */

    Page<OrderDeliveryVO> orderDeliveryPageList(Page<OrderDeliveryVO> objectPage, @Param("query") QueryDeliveryDTO query,@Param("storeId") Integer storeId);


}
